/*Martin@20150303
#include "font_asc_1bit.h"
#include "font_asc_big_1bit.h"
#include "font_asc_small_1bit.h"
*/

#include "font_lat1_1bit.h"
#include "font_lat1_big_1bit.h"
#include "font_lat1_small_1bit.h"

#include "../../osd_rsc.h"
#include <api/libmp/mp_subtitle_api.h>

/*Martin@20150303*/
#if(AOV_SPAN_SUPPORT_ENABLE == SYS_FUNC_ON ||AOV_POR_SUPPORT_ENABLE == SYS_FUNC_ON)
font_t font_lat1_1bit[] =
{
	{29, 95,    Fonts_lat1_width_1bit,    Fonts_lat1_data_1bit, Fonts_lat1_name_1bit, 1},
	{29, 95,    Fonts_lat1_width_1bit,    Fonts_lat1_data_1bit, Fonts_lat1_name_1bit, 1},
	//{24, 96,    Fonts_lat1_small_width_1bit,    Fonts_lat1_small_data_1bit, Fonts_lat1_small_name_1bit, 1},
    {31, 95,    Fonts_lat1_big_width_1bit,    Fonts_lat1_big_data_1bit, Fonts_lat1_big_name_1bit, 1},
    {29, 95,    Fonts_lat1_width_1bit,    Fonts_lat1_data_1bit, Fonts_lat1_name_1bit, 1},
};
#endif

font_t font_asc_1bit[] =
{
	{29, 95,    Fonts_asc_width_1bit,    Fonts_asc_data_1bit, Fonts_asc_name_1bit, 1},
	{29, 95,    Fonts_asc_width_1bit,    Fonts_asc_data_1bit, Fonts_asc_name_1bit, 1},
	{31, 95,    Fonts_asc_big_width_1bit,Fonts_asc_big_data_1bit, Fonts_asc_big_name_1bit, 1},
	{29, 95,    Fonts_asc_width_1bit,    Fonts_asc_data_1bit, Fonts_asc_name_1bit, 1},
/*	{36, 95,    Fonts_asc_width_1bit,    Fonts_asc_data_1bit, Fonts_asc_name_1bit, 1},
    {31, 96,    Fonts_asc_small_width_1bit,Fonts_asc_small_data_1bit, Fonts_asc_small_name_1bit, 1},
	{42, 96,    Fonts_asc_big_width_1bit,Fonts_asc_big_data_1bit, Fonts_asc_big_name_1bit, 1},
	{36, 95,    Fonts_asc_width_1bit,    Fonts_asc_data_1bit, Fonts_asc_name_1bit, 1},
*/
};
//End------Martin


/*Martin@20150303*/
font_t *font_array_1bit[]=
{
	font_asc_1bit,
#if(AOV_SPAN_SUPPORT_ENABLE == SYS_FUNC_ON || AOV_POR_SUPPORT_ENABLE == SYS_FUNC_ON)
	font_lat1_1bit,
#endif
};
//End------Martin


/*Martin@20150303*/
font_subt_t font_asc_1bit_subt[] =
{
   /*height start end   count size       width                      data                      code_table      zero_data_num data_offset offset_unit  data_type*/
/*  {36, 0x0020, 0x007e, 95,   0,  (const UINT8 *)Fonts_asc_width_1bit,       (const UINT8 *)Fonts_asc_data_1bit,      (const UINT16 *)Fonts_asc_name_1bit,       NULL,       NULL,       0,            2},
    {31, 0x0020, 0x007e, 96,   0,  (const UINT8 *)Fonts_asc_small_width_1bit,       (const UINT8 *)Fonts_asc_small_data_1bit,     (const UINT16 *) Fonts_asc_small_name_1bit,       NULL,       NULL,       0,            2},
    {42, 0x0020, 0x007f, 96,   0,  (const UINT8 *)Fonts_asc_big_width_1bit,   (const UINT8 *)Fonts_asc_big_data_1bit,  (const UINT16 *)Fonts_asc_big_name_1bit,   NULL,       NULL,       0,            2},
    {36, 0x0020, 0x007e, 95,   0,  (const UINT8 *)Fonts_asc_width_1bit,       (const UINT8 *)Fonts_asc_data_1bit,      (const UINT16 *)Fonts_asc_name_1bit,       NULL,       NULL,       0,            2},
*/
	{29, 0x00a1, 0x00ff, 95,   0,  (const UINT8 *)Fonts_lat1_width_1bit,      (const UINT8 *)Fonts_lat1_data_1bit,     (const UINT16 *)Fonts_lat1_name_1bit,      NULL,       NULL,       0,            2},
	{29, 0x00a1, 0x00ff, 95,   0,  (const UINT8 *)Fonts_lat1_width_1bit,      (const UINT8 *)Fonts_lat1_data_1bit,     (const UINT16 *)Fonts_lat1_name_1bit,      NULL,       NULL,       0,            2},
	//{29, 0x00a1, 0x00ff, 92,   0,  (const UINT8 *)Fonts_lat1_small_width_1bit,      (const UINT8 *)Fonts_lat1_small_data_1bit,     (const UINT16 *)Fonts_lat1_small_name_1bit,      NULL,       NULL,       0,            2},
	{31, 0x00a1, 0x00ff, 95,   0,  (const UINT8 *)Fonts_lat1_big_width_1bit,  (const UINT8 *)Fonts_lat1_big_data_1bit, (const UINT16 *)Fonts_lat1_big_name_1bit,  NULL,       NULL,       0,            2},
	{29, 0x00a1, 0x00ff, 95,   0,  (const UINT8 *)Fonts_lat1_width_1bit,      (const UINT8 *)Fonts_lat1_data_1bit,     (const UINT16 *)Fonts_lat1_name_1bit,      NULL,       NULL,       0,            2},
};

#if(AOV_SPAN_SUPPORT_ENABLE == SYS_FUNC_ON || AOV_POR_SUPPORT_ENABLE == SYS_FUNC_ON)
font_subt_t font_lat1_1bit_subt[] =
{
   /*height start end   count size       width                   data                        code_table      zero_data_num data_offset offset_unit  data_type*/
    {29, 0x00a1, 0x00ff, 95,   0,  (const UINT8 *)Fonts_lat1_width_1bit,      (const UINT8 *)Fonts_lat1_data_1bit,     (const UINT16 *)Fonts_lat1_name_1bit,      NULL,       NULL,       0,            2},
	{29, 0x00a1, 0x00ff, 95,   0,  (const UINT8 *)Fonts_lat1_width_1bit,      (const UINT8 *)Fonts_lat1_data_1bit,     (const UINT16 *)Fonts_lat1_name_1bit,      NULL,       NULL,       0,            2},
	//{29, 0x00a1, 0x00ff, 95,   0,  (const UINT8 *)Fonts_lat1_small_width_1bit,      (const UINT8 *)Fonts_lat1_small_data_1bit,     (const UINT16 *)Fonts_lat1_small_name_1bit,      NULL,       NULL,       0,            2},
    {31, 0x00a1, 0x00ff, 95,   0,  (const UINT8 *)Fonts_lat1_big_width_1bit,  (const UINT8 *)Fonts_lat1_big_data_1bit, (const UINT16 *)Fonts_lat1_big_name_1bit,  NULL,       NULL,       0,            2},
    {29, 0x00a1, 0x00ff, 95,   0,  (const UINT8 *)Fonts_lat1_width_1bit,      (const UINT8 *)Fonts_lat1_data_1bit,     (const UINT16 *)Fonts_lat1_name_1bit,      NULL,       NULL,       0,            2},
};
#endif

font_subt_t *font_array_1bit_subt[]=
{
	font_asc_1bit_subt,
#if(AOV_SPAN_SUPPORT_ENABLE == SYS_FUNC_ON || AOV_POR_SUPPORT_ENABLE == SYS_FUNC_ON)
	font_lat1_1bit_subt,
#endif
};
//End------Martin

#define FONT_MAX_SIZE 4

